翻訳と辞書
Words near each other
・ Zwódne
・ Zwóz
・ Zwölfaxing
・ Zwölferkofel
・ Zwönitz
・ Zwönitz (river)
・ ZX
・ ZX Auto
・ ZX Interface 1
・ ZX Interface 2
・ ZX Magazín
・ ZX Microdrive
・ ZX Printer
・ Zx Sniffer
・ ZX Spectrum
ZX Spectrum character set
・ ZX Spectrum Contended Memory
・ ZX Spectrum demos
・ ZX Spectrum graphic modes
・ ZX Spectrum software
・ ZX80
・ ZX80 character set
・ ZX81
・ ZX8301
・ ZX8302
・ ZXDC
・ ZXID
・ Zxx
・ ZY
・ Zyablikovo


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

ZX Spectrum character set : ウィキペディア英語版
ZX Spectrum character set

The ZX Spectrum character set is the variant of ASCII used in the British Sinclair ZX Spectrum computers. It is based on ASCII-1967, but with one character from ASCII-1963 (the first version of ASCII), two non-standard graphics characters, an idiosyncratic use of the control code area and use of the 128 high-bit characters beyond the ASCII range.〔ZX Spectrum manual, Appendix A, the character set〕
== Printable characters ==
The printable part of the Spectrum character set, 0x20–0x7F, is almost standard, except that 0x60 is the pound sign (£) instead of the grave accent ( ` ) and 0x7F is the copyright sign (©) instead of the control code DEL. The pound sign was mapped to 0x60, and not 0x23 as in the British variant of ASCII (ISO-646-GB), making both the pound sign and the number sign (#) available universally. Code 0x5E contains an up-arrow (↑) as in ASCII-1963 instead of the ASCII-1967 caret (^); however, 0x5F has an underscore (_) and not a left-arrow (←).
Beyond 0x7F, the Spectrum character set uses the high-bit range, 0x80–0xFF, for special purposes. 0x80–0x8F contain block graphics. 0x90–0xA4 contain the User Defined Graphics (UDGs), which the user can customise with a few lines of BASIC. 0xA5–0xFF contain tokens (BASIC keywords represented as single characters): for example, pressing P at the beginning of a line would generate the code 0xF6, which would cause the BASIC keyword PRINT to display on the screen. Codes 0xC7–0xC9 are the mathematical operators <= (less-than-or-equal), >= (greater-than-or-equal) and <> (not-equal) respectively; unlike the relational operators of most other systems, these are characters in their own right and cannot be achieved by typing the two constituent symbols one after the other.
Mapping the printable Spectrum character set to Unicode is possible, but fonts containing some of the block graphics characters are still not commonplace.
The glyphs used to display printable characters (32 (space) to 127 (copyright)) are stored at the end of the Spectrum's ROM at memory address 15616 (0x3D00) to 16383 (0x3FFF) and are referenced by the system variable CHARS which can be found at memory address 23606/7 (0x5C36/7). The value in CHARS is actually 256 bytes lower than the first byte of the space character so that referencing a printable ASCII character does not need to consider the first 32 characters. As such, the CHARS value (by default) holds the address 15360 (0x3C00).〔ZX Spectrum manual, Chapter 25, the system variables〕
The UDG characters (Gr-A to Gr-U) are stored at the end of the Spectrum's RAM at memory address 65368 (0xFF58) to 65535 (0xFFFF). As such, a POKE issued to this address range changes the UDG characters used in subsequent PRINT statements (though not any UDG characters already drawn to the screen). The USR keyword (when followed by a single quoted character) provides a quick method to reference these addresses from BASIC. As with the printable characters, the location of the UDG characters is stored in the system variable UDG.〔
The final two UDG characters (Gr-T and Gr-U) are not available on the 128K Spectrums (except in the backward-compatible 48K mode), where they are replaced with two new BASIC keywords: SPECTRUM and PLAY. A side-effect of this is that some older games do not work properly, displaying the keywords SPECTRUM and PLAY instead of their intended graphics.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「ZX Spectrum character set」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.